<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="description" content="<?=$this->website_description?>" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<title><?=TITLE?> <?=$this->website_title?></title>
<link rel="stylesheet" type="text/css" href="<?=ROOT_PATH?>/html/styles/style.css" media="screen" />
<link rel="stylesheet" type="text/css" href="<?=ROOT_PATH?>/html/styles/shop/shop.css" media="screen" />
<script language="javascript">var ROOT_PATH="<?=ROOT_PATH?>";var COOKIE_PRE="<?=COOKIE_PRE?>";var CHOSING_DE="<?=CHOSING_DE?>";</script>
<script src="<?=MY_URL?>/html/scripts/jquery.js"></script>
<script src="<?=MY_URL?>/html/scripts/common.js"></script>
<script src="<?=MY_URL?>/html/scripts/shop/shop.js"></script>
<script type="text/javascript" src="http://kf.5251.net/js/yh.jsp?companyId=8522&style=18843&keyword=1&locate=en"></script>
<style>
#menu .<?=$this->makeurl()?>{
	background:url(<?=MY_URL?>/html/images/body_background2.jpg) repeat-x center;
}
</style>
</head>
<body>
<div id="page_header">
	<div id="userState">
		<? if($this->member_type=="buyer"):?>
			<?=$this->username?>&nbsp;|&nbsp;
			<a href="<?=MY_URL?>/adminb">Management</a>&nbsp;|&nbsp;
			<a href="<?=MY_URL?>/auth-logout">Logout</a>
		<?elseif($this->member_type=="administrator"):?>
			<?=$this->username?>&nbsp;|&nbsp;
			<a href="<?=MY_URL?>/administrator">进入管理后台</a>&nbsp;|&nbsp;
			<a href="<?=MY_URL?>/administrator-auth-logout">Logout</a>
		<?else:?>
			<a href="<?=MY_URL?>/auth-login">Login</a>&nbsp;|&nbsp;
			<a href="<?=MY_URL?>/auth-register">Register</a>
		<?endif;?>
	</div>
	<div id="page_title">
		<a href="<?=MY_URL?>"><img src="<?=MY_URL?>/html/images/logo.jpg" alt="ZCshop" /></a>  
	</div>
</div>
<div id="page_menu">
	<ul id="menu">
		<li><a class="indexUrl" href="<?=MY_URL?>">Home</a></li>
		<?foreach($this->navArray as $value):?>
			<li><a class="<?=$this->makeurl($value['url'])?>" href="<?=$value['url']?>"><?=$value['name']?></a></li>
		<?endforeach;?>
	</ul>
	<div id="cartOrder"><a href="<?=MY_URL?>/product-showitem">Cart <?=$this->showItemCounts?> items</a><a href="<?=MY_URL?>/product-pay">Orders <?=$this->orderCounts?></a></div>
</div>

<div id="page_wrapper">
	<div class="searchTopDiv">
		<form action="<?=MY_URL?>/search-detail" method="get">
		What are you shopping for&nbsp;?&nbsp;&nbsp;<input name="keyword" value="<?=$this->keyword?>" class="searchTopInput" />&nbsp;<input onclick="checkSearchForm($(this).parent());" type="button" value="search" />
               <!-- <a href="<?=MY_URL?>/LogoSeach/">logoSearch</a>-->
                </form>
	</div>
	<?if($this->pmCounts>0):?>
		<div id="newPmDiv">
			<img src="<?=MY_URL?>/html/images/newpm.gif" />&nbsp;You have <?=$this->pmCounts?> new messages!&nbsp;&nbsp;&nbsp;<a href="<?=MY_URL?>/<?=$this->userType?>?iframeUrl=<?=$this->userType?>-pm-index%3Ffromto%3Dto">Check it</a>
		</div>
	<?endif;?>
	<?if($this->navFlString!=''):?>
		<div class="navFlDiv"><a href="<?=MY_URL?>">Home</a> >> <?=$this->navFlString?></div>
	<?endif;?>
	<?if(count($this->flArray)>0):?>
	<div id="leftBody">
		<div class="page_box">
			<h3>Bulletin</h3>
			<div class="bulletinDiv">
				<?foreach($this->bulletinArray as $value):?>
				<div><a title="<?=$value['subject']?>" href="<?=MY_URL?>/bulletin-more-itemid-<?=$value['itemid']?>/<?=$this->encodeName($value['subject'])?>/"><?=$this->subStr($value['subject'],0,20)?></a></div>
				<?endforeach;?>
			</div>
		</div>
   	  <div class="page_box page_box_bg">
        <h3>Categories</h3>
        <ul class="newsDiv">
			<?foreach($this->flArray as $value):?>
			<div class="parentLi">
				<div class="parentLiDiv">
					<a title="<?=$value['data']['en_flname']?>" href="<?=MY_URL?>/category-detail-cid-<?=$value['id']?>/<?=$this->encodeName($value['data']['en_flname'])?>/"><?=$this->subStr($value['data']['en_flname'],0,25)?></a>
				</div>
				<?if($this->tree->getChildren($value['id'])):?>
					<div class="childMenu">
						<?foreach($value['child'] as $value2):?>
							<div>
								<a title="<?=$value2['data']['en_flname']?>" href="<?=MY_URL?>/category-detail-cid-<?=$value2['id']?>/<?=$this->encodeName($value2['data']['en_flname'])?>/"><?=$this->subStr($value2['data']['en_flname'],0,35)?></a>
							</div>
						<?endforeach;?>	
					</div>
				<?endif;?>
			</div>
			<?endforeach;?>
	   	</ul>
        </div>
		<div class="page_box">
			<h2>What's New?</h2>
			<div class="newProductShow">
				<ul>
					<?foreach($this->isNewItemArray as $value):?>
					<li>
						<div><a title="<?=$value['pattern_intro']?>" href="<?=MY_URL?>/product-detail-id-<?=$value['itemid']?>/<?=$this->encodeName($value['subject'])?>/"><img src="<?=MY_URL?>/<?=$value['cut_url']?>" /></a></div>
				<!--		<div><?=$this->subStr($value['pattern_intro'],0,50)?></div>   
				 -->
						<div><strong><a title="<?=$value['subject']?>" href="<?=MY_URL?>/product-detail-id-<?=$value['itemid']?>/<?=$this->encodeName($value['subject'])?>/"><?=$this->subStr($value['subject'],0,50)?></a></strong></div>
					</li>
					<?endforeach;?>
				</ul>
				<div class="clearthis">.</div>
			</div>
		</div>
    </div>
	<?endif;?>
	<?php echo $this->layout()->content ?>
</div>
<div id="page_spacing">
<div id="page_footer">
	<div id="rights">&copy; ZCshop</div>
	<div id="links">
<span><a href="#">ZCshop</a></span>
<span><a href="#">ZCshop</a></span>
<span><a href="#">ZCshop</a></span>
<span><a target="_blank" href="http://www.miibeian.gov.cn/">粵ICP备040387号</a></span>
	</div>
</div>
</div>
<div id="page_credit">
<a href="#">&copy; ZCshop 2005-2009</a>  <a class="rssImgA" href="<?=MY_URL?>/rss-index-rss.xml" target="_blank"><img src="<?=MY_URL?>/html/images/rss.jpg" /></a>
</div>
<div align="center"><script language="javascript" type="text/javascript" src="http://js.users.51.la/2986009.js"></script>
<noscript><a href="http://www.51.la/?2986009" target="_blank"><img alt="&#x6211;&#x8981;&#x5566;&#x514D;&#x8D39;&#x7EDF;&#x8BA1;" src="http://img.users.51.la/2986009.asp" style="border:none" /></a></noscript></div>
<script>
function checkSearchForm(thisForm){
	var thisValue=$(thisForm).find('.searchTopInput').val();
	if(trim(thisValue)==''){
		alert('Please input a search term!');
		return false;
	}
	$(thisForm).submit();
	return true;
}
</script>
<div class="clearthis">.</div>
</body>
</html>